package com.jxw.studyrecord;

import android.text.TextUtils;

/* loaded from: classes.dex */
public class StudyRecordBaseName {
    private static final String CLOUD_HG_EXAM = "黄冈考点";
    private static final String CLOUD_HG_HAI_DIAN = "名师课堂";
    private static final String CLOUD_MY_APP = "我的应用";
    private static final String CLOUD_PARENTS_MNG = "家长管理";
    private static final String CLOUD_STUDY_DIAGNOSE = "学习诊断";
    private static final String CLOUD_TB_BOOK = "同步书苑";
    private static final String CLOUD_THEME_STYLE = "主题风格";
    private static final String CLOUD_VH_BOOK = "万虹书苑";
    private static final String CLOUD_WRONG_RECORD = "错题本";
    private static final String DICT_ANCIENT_CN = "古汉语词典";
    private static final String DICT_ANCIENT_POETIC = "古诗文词典";
    private static final String DICT_CN = "汉语词典";
    private static final String DICT_CN_EN = "汉英大词典";
    private static final String DICT_EN_CN = "英汉大词典";
    private static final String DICT_IDIOM = "成语词典";
    private static final String DICT_LONGMAN_DANG_DAI = "朗文当代";
    private static final String DICT_LONGMAN_SHUANG_JIE = "朗文双解";
    private static final String DICT_MIDDLE_PRIMARY_EN_CN = "中小学英汉词典";
    private static final String DICT_NEW_WORD = "生词库";
    private static final String DICT_PROFESSION = "专业词典";
    private static final String DICT_TONG_FAN_YI = "同反义词典";
    private static final String DICT_XIN_HUA = "新华字典";
    private static final String EN_PHONETIC = "国际音标";
    private static final String MORE_CALC = "计算器";
    private static final String MORE_CAMERA = "照相机";
    private static final String MORE_FILE_MNG = "文件管理";
    private static final String MORE_MOVIE = "影视厅";
    private static final String MORE_MUSIC = "音乐盒";
    private static final String MORE_PHOTO = "相册簿";
    private static final String MORE_RECORDER = "录音机";
    private static final String MORE_SYSTEM_MNG = "系统管家";
    private static final String MORE_SYSTEM_SETTING = "系统设置";
    private static final String SECOND_LINE_COMPOSITION = "在线作文";
    private static final String SECOND_LINE_DOWNLOAD = "应用下载";
    private static final String SECOND_LINE_EXAM = "考试中心";
    private static final String SECOND_LINE_EXCHANGE = "交流中心";
    private static final String SECOND_LINE_GREEN_WEB = "绿色云学网";
    private static final String SECOND_LINE_QA = "一对一答疑";
    private static final String SECOND_LINE_SEARCH = "在线搜学";
    private static final String SECOND_LINE_TEACH = "在线教学";

    /* JADX INFO: Access modifiers changed from: protected */
    public static String getOtherComName(String str, String str2) {
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_VH_BOOK, str2, StudyRecordAPKInfo.CLASS_VH_BOOK)) {
            return CLOUD_VH_BOOK;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_TB_BOOK, str2, StudyRecordAPKInfo.CLASS_TB_BOOK)) {
            return CLOUD_TB_BOOK;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_PARENTS_MNG, str2, StudyRecordAPKInfo.CLASS_PARENTS_MNG)) {
            return CLOUD_PARENTS_MNG;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_STUDY_DIAGNOSE, str2, StudyRecordAPKInfo.CLASS_STUDY_DIAGNOSE)) {
            return CLOUD_STUDY_DIAGNOSE;
        }
        if (isSamePackageClassName(str, "com.jxw.examsystem", str2, StudyRecordAPKInfo.CLASS_WRONG_RECORD)) {
            return CLOUD_WRONG_RECORD;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_THEME_STYLE, str2, StudyRecordAPKInfo.CLASS_THEME_STYLE)) {
            return CLOUD_THEME_STYLE;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_MY_APP, str2, StudyRecordAPKInfo.CLASS_MY_APP)) {
            return CLOUD_MY_APP;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_PHONETIC, str2, StudyRecordAPKInfo.CLASS_PHONETIC)) {
            return EN_PHONETIC;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_PROFESSION, str2, StudyRecordAPKInfo.CLASS_PROFESSION)) {
            return DICT_PROFESSION;
        }
        if (isSamePackageClassName(str, "com.jxw.launcher", str2, StudyRecordAPKInfo.CLASS_NEW_WORD)) {
            return DICT_NEW_WORD;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_MUSIC, str2, StudyRecordAPKInfo.CLASS_MUSIC)) {
            return MORE_MUSIC;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_CAMERA, str2, StudyRecordAPKInfo.CLASS_CAMERA)) {
            return MORE_CAMERA;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_PHOTO, str2, StudyRecordAPKInfo.CLASS_PHOTO)) {
            return MORE_PHOTO;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_RECORDER, str2, StudyRecordAPKInfo.CLASS_RECORDER)) {
            return MORE_RECORDER;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_CALC, str2, StudyRecordAPKInfo.CLASS_CALC)) {
            return MORE_CALC;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_FILE_MNG, str2, StudyRecordAPKInfo.CLASS_FILE_MNG)) {
            return MORE_FILE_MNG;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SYSTEM_MNG, str2, StudyRecordAPKInfo.CLASS_SYSTEM_MNG)) {
            return MORE_SYSTEM_MNG;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SYSTEM_SETTING, str2, StudyRecordAPKInfo.CLASS_SYSTEM_SETTING)) {
            return MORE_SYSTEM_SETTING;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SECOND_LINE_QA, str2, StudyRecordAPKInfo.CLASS_SECOND_LINE_QA)) {
            return SECOND_LINE_QA;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SECOND_LINE_EXAM, str2, StudyRecordAPKInfo.CLASS_SECOND_LINE_EXAM)) {
            return SECOND_LINE_EXAM;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SECOND_LINE_TEACH, str2, StudyRecordAPKInfo.CLASS_SECOND_LINE_TEACH)) {
            return SECOND_LINE_TEACH;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SECOND_LINE_SEARCH, str2, StudyRecordAPKInfo.CLASS_SECOND_LINE_SEARCH)) {
            return SECOND_LINE_SEARCH;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SECOND_LINE_COMPOSITION, str2, StudyRecordAPKInfo.CLASS_SECOND_LINE_COMPOSITION)) {
            return SECOND_LINE_COMPOSITION;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SECOND_LINE_GREEN_WEB, str2, StudyRecordAPKInfo.CLASS_SECOND_LINE_GREEN_WEB)) {
            return SECOND_LINE_GREEN_WEB;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SECOND_LINE_EXCHANGE, str2, StudyRecordAPKInfo.CLASS_SECOND_LINE_EXCHANGE)) {
            return SECOND_LINE_EXCHANGE;
        }
        if (isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_SECOND_LINE_DOWNLOAD, str2, StudyRecordAPKInfo.CLASS_SECOND_LINE_DOWNLOAD)) {
            return SECOND_LINE_DOWNLOAD;
        }
        return null;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public static String getFileListName(String str, String str2, String str3) {
        if (TextUtils.isEmpty(str3) || !isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_NAME_FILE_LIST, str2, StudyRecordAPKInfo.CLASS_NAME_FILE_LIST)) {
            return null;
        }
        if (str3.equals("1")) {
            return CLOUD_HG_EXAM;
        }
        if (str3.equals(StudyRecordAPKInfo.ARG_FILE_LIST_MOVIE)) {
            return MORE_MOVIE;
        }
        if (str3.equals(StudyRecordAPKInfo.ARG_FILE_LIST_HG)) {
            return CLOUD_HG_HAI_DIAN;
        }
        return null;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public static String getDictName(String str, String str2, String str3) {
        if (TextUtils.isEmpty(str3) || !isSamePackageClassName(str, StudyRecordAPKInfo.PACKAGE_NAME_DICT, str2, StudyRecordAPKInfo.CLASS_NAME_DICT)) {
            return null;
        }
        if (str3.equals("朗文当代")) {
            return "朗文当代";
        }
        if (str3.equals("朗文双解")) {
            return "朗文双解";
        }
        if (str3.equals("英汉大词典")) {
            return "英汉大词典";
        }
        if (str3.equals("汉英大词典")) {
            return "汉英大词典";
        }
        if (str3.equals("汉语词典")) {
            return "汉语词典";
        }
        if (str3.equals("新华字典")) {
            return "新华字典";
        }
        if (str3.equals("古汉语词典")) {
            return "古汉语词典";
        }
        if (str3.equals("古诗文词典")) {
            return "古诗文词典";
        }
        if (str3.equals("中小学英汉词典")) {
            return "中小学英汉词典";
        }
        if (str3.equals("成语词典")) {
            return "成语词典";
        }
        if (str3.equals("同反义词典")) {
            return "同反义词典";
        }
        return null;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public static boolean isSamePackageClassName(String str, String str2, String str3, String str4) {
        return str.equals(str2) && str3.equals(str4);
    }

    /* JADX INFO: Access modifiers changed from: protected */
    public static String getFileName(String str, boolean z) {
        int lastIndexOf;
        if (TextUtils.isEmpty(str)) {
            return str;
        }
        String substring = str.substring(str.lastIndexOf(47) + 1);
        return (!z || (lastIndexOf = substring.lastIndexOf(46)) < 0) ? substring : substring.substring(0, lastIndexOf);
    }
}
